<?php

namespace app\common\model;

class ArticleTitleTask extends \think\Model
{
    protected $table = 'db_article_title_task';

    protected $jsonAssoc = true;

    protected $autoWriteTimestamp = true;

    protected $schema = [
        'id' => 'int',
        'create_time' => 'int',
        'update_time' => 'int',
        'keywords' => 'varchar',
        'lang' => 'varchar',
        'check_type' => 'tinyint',
        'num' => 'int',
        'member_id' => 'int',
        'article_class_id' => 'int',
        'forbiddenwords_id' => 'int',
        'has_num' => 'int',
        'state' => 'tinyint',
        'length' => 'int',
    ];

    public $getters = [
        
    ];

    /**
     * 关联模型article
     */
    public function article()
    {
        return $this->hasMany(Article::class );
    }

    /**
     * 关联模型member
     */
    public function member()
    {
        return $this->belongsTo(Member::class );
    }

    /**
     * 关联模型articleClass
     */
    public function articleClass()
    {
        return $this->belongsTo(ArticleClass::class );
    }
}
